<wicket:head>
  <script type="text/javascript">
  function foo() {
     alert("Hello, World!");
  }
</script>
</wicket:head>
<body>
<wicket:panel>
  <div>
    <a href="#" onclick="foo();">Click me!</a>
  </div>
</wicket:panel>
</body>
